﻿#pragma once

#include <wx/wxprec.h>
#include <wx/dir.h>
#include <wx/listbox.h>
#include <wx/wx.h>
#include "../json/json.h"
#include <wx/stattext.h>
#include<fstream>
#include<iostream>
#include<string>

class InFrame : public wxFrame
{
public:
    InFrame(const wxString& title, std::vector<Json::Value>* draws);
    void OnListBoxSelected(wxCommandEvent& event);
    void OnPaint(wxPaintEvent& event);
    void In(wxCommandEvent& event);



    std::vector<Json::Value>* pdraws;//传递
    wxPanel* panel;
    wxPanel* rightPanel;
    wxListBox* listBox;
    wxButton* button;
    std::vector<wxString> selectedItems;//元器件名
    std::vector<Json::Value> draws;//内部绘制
    Json::Value drawing;//读取的文件


};

const int IN_BUTTON = 666;
